/**
 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package de.hsmannheim.pepa.patientenportal.apanwep.service.base;

import com.liferay.portal.kernel.bean.BeanReference;
import com.liferay.portal.kernel.bean.IdentifiableBean;
import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
import com.liferay.portal.kernel.dao.orm.DynamicQuery;
import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
import com.liferay.portal.kernel.dao.orm.Projection;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.search.Indexable;
import com.liferay.portal.kernel.search.IndexableType;
import com.liferay.portal.kernel.util.OrderByComparator;
import com.liferay.portal.model.PersistedModel;
import com.liferay.portal.service.BaseLocalServiceImpl;
import com.liferay.portal.service.PersistedModelLocalServiceRegistryUtil;
import com.liferay.portal.service.persistence.UserPersistence;

import de.hsmannheim.pepa.patientenportal.apanwep.model.messages_mobjects;
import de.hsmannheim.pepa.patientenportal.apanwep.service.messages_mobjectsLocalService;
import de.hsmannheim.pepa.patientenportal.apanwep.service.persistence.chronikPersistence;
import de.hsmannheim.pepa.patientenportal.apanwep.service.persistence.contactPersistence;
import de.hsmannheim.pepa.patientenportal.apanwep.service.persistence.messagePersistence;
import de.hsmannheim.pepa.patientenportal.apanwep.service.persistence.message_objectsPersistence;
import de.hsmannheim.pepa.patientenportal.apanwep.service.persistence.message_participantsPersistence;
import de.hsmannheim.pepa.patientenportal.apanwep.service.persistence.messages_mobjectsPK;
import de.hsmannheim.pepa.patientenportal.apanwep.service.persistence.messages_mobjectsPersistence;
import de.hsmannheim.pepa.patientenportal.apanwep.service.persistence.messages_mparticipantsPersistence;
import de.hsmannheim.pepa.patientenportal.apanwep.service.persistence.objectsPersistence;
import de.hsmannheim.pepa.patientenportal.apanwep.service.persistence.participantsPersistence;

import java.io.Serializable;

import java.util.List;

import javax.sql.DataSource;

/**
 * Provides the base implementation for the messages_mobjects local service.
 *
 * <p>
 * This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in {@link de.hsmannheim.pepa.patientenportal.apanwep.service.impl.messages_mobjectsLocalServiceImpl}.
 * </p>
 *
 * @author Cedric Nana
 * @see de.hsmannheim.pepa.patientenportal.apanwep.service.impl.messages_mobjectsLocalServiceImpl
 * @see de.hsmannheim.pepa.patientenportal.apanwep.service.messages_mobjectsLocalServiceUtil
 * @generated
 */
public abstract class messages_mobjectsLocalServiceBaseImpl
	extends BaseLocalServiceImpl implements messages_mobjectsLocalService,
		IdentifiableBean {
	/*
	 * NOTE FOR DEVELOPERS:
	 *
	 * Never modify or reference this class directly. Always use {@link de.hsmannheim.pepa.patientenportal.apanwep.service.messages_mobjectsLocalServiceUtil} to access the messages_mobjects local service.
	 */

	/**
	 * Adds the messages_mobjects to the database. Also notifies the appropriate model listeners.
	 *
	 * @param messages_mobjects the messages_mobjects
	 * @return the messages_mobjects that was added
	 * @throws SystemException if a system exception occurred
	 */
	@Indexable(type = IndexableType.REINDEX)
	@Override
	public messages_mobjects addmessages_mobjects(
		messages_mobjects messages_mobjects) throws SystemException {
		messages_mobjects.setNew(true);

		return messages_mobjectsPersistence.update(messages_mobjects);
	}

	/**
	 * Creates a new messages_mobjects with the primary key. Does not add the messages_mobjects to the database.
	 *
	 * @param messages_mobjectsPK the primary key for the new messages_mobjects
	 * @return the new messages_mobjects
	 */
	@Override
	public messages_mobjects createmessages_mobjects(
		messages_mobjectsPK messages_mobjectsPK) {
		return messages_mobjectsPersistence.create(messages_mobjectsPK);
	}

	/**
	 * Deletes the messages_mobjects with the primary key from the database. Also notifies the appropriate model listeners.
	 *
	 * @param messages_mobjectsPK the primary key of the messages_mobjects
	 * @return the messages_mobjects that was removed
	 * @throws PortalException if a messages_mobjects with the primary key could not be found
	 * @throws SystemException if a system exception occurred
	 */
	@Indexable(type = IndexableType.DELETE)
	@Override
	public messages_mobjects deletemessages_mobjects(
		messages_mobjectsPK messages_mobjectsPK)
		throws PortalException, SystemException {
		return messages_mobjectsPersistence.remove(messages_mobjectsPK);
	}

	/**
	 * Deletes the messages_mobjects from the database. Also notifies the appropriate model listeners.
	 *
	 * @param messages_mobjects the messages_mobjects
	 * @return the messages_mobjects that was removed
	 * @throws SystemException if a system exception occurred
	 */
	@Indexable(type = IndexableType.DELETE)
	@Override
	public messages_mobjects deletemessages_mobjects(
		messages_mobjects messages_mobjects) throws SystemException {
		return messages_mobjectsPersistence.remove(messages_mobjects);
	}

	@Override
	public DynamicQuery dynamicQuery() {
		Class<?> clazz = getClass();

		return DynamicQueryFactoryUtil.forClass(messages_mobjects.class,
			clazz.getClassLoader());
	}

	/**
	 * Performs a dynamic query on the database and returns the matching rows.
	 *
	 * @param dynamicQuery the dynamic query
	 * @return the matching rows
	 * @throws SystemException if a system exception occurred
	 */
	@Override
	@SuppressWarnings("rawtypes")
	public List dynamicQuery(DynamicQuery dynamicQuery)
		throws SystemException {
		return messages_mobjectsPersistence.findWithDynamicQuery(dynamicQuery);
	}

	/**
	 * Performs a dynamic query on the database and returns a range of the matching rows.
	 *
	 * <p>
	 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link de.hsmannheim.pepa.patientenportal.apanwep.model.impl.messages_mobjectsModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
	 * </p>
	 *
	 * @param dynamicQuery the dynamic query
	 * @param start the lower bound of the range of model instances
	 * @param end the upper bound of the range of model instances (not inclusive)
	 * @return the range of matching rows
	 * @throws SystemException if a system exception occurred
	 */
	@Override
	@SuppressWarnings("rawtypes")
	public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
		throws SystemException {
		return messages_mobjectsPersistence.findWithDynamicQuery(dynamicQuery,
			start, end);
	}

	/**
	 * Performs a dynamic query on the database and returns an ordered range of the matching rows.
	 *
	 * <p>
	 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link de.hsmannheim.pepa.patientenportal.apanwep.model.impl.messages_mobjectsModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
	 * </p>
	 *
	 * @param dynamicQuery the dynamic query
	 * @param start the lower bound of the range of model instances
	 * @param end the upper bound of the range of model instances (not inclusive)
	 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
	 * @return the ordered range of matching rows
	 * @throws SystemException if a system exception occurred
	 */
	@Override
	@SuppressWarnings("rawtypes")
	public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
		OrderByComparator orderByComparator) throws SystemException {
		return messages_mobjectsPersistence.findWithDynamicQuery(dynamicQuery,
			start, end, orderByComparator);
	}

	/**
	 * Returns the number of rows that match the dynamic query.
	 *
	 * @param dynamicQuery the dynamic query
	 * @return the number of rows that match the dynamic query
	 * @throws SystemException if a system exception occurred
	 */
	@Override
	public long dynamicQueryCount(DynamicQuery dynamicQuery)
		throws SystemException {
		return messages_mobjectsPersistence.countWithDynamicQuery(dynamicQuery);
	}

	/**
	 * Returns the number of rows that match the dynamic query.
	 *
	 * @param dynamicQuery the dynamic query
	 * @param projection the projection to apply to the query
	 * @return the number of rows that match the dynamic query
	 * @throws SystemException if a system exception occurred
	 */
	@Override
	public long dynamicQueryCount(DynamicQuery dynamicQuery,
		Projection projection) throws SystemException {
		return messages_mobjectsPersistence.countWithDynamicQuery(dynamicQuery,
			projection);
	}

	@Override
	public messages_mobjects fetchmessages_mobjects(
		messages_mobjectsPK messages_mobjectsPK) throws SystemException {
		return messages_mobjectsPersistence.fetchByPrimaryKey(messages_mobjectsPK);
	}

	/**
	 * Returns the messages_mobjects with the primary key.
	 *
	 * @param messages_mobjectsPK the primary key of the messages_mobjects
	 * @return the messages_mobjects
	 * @throws PortalException if a messages_mobjects with the primary key could not be found
	 * @throws SystemException if a system exception occurred
	 */
	@Override
	public messages_mobjects getmessages_mobjects(
		messages_mobjectsPK messages_mobjectsPK)
		throws PortalException, SystemException {
		return messages_mobjectsPersistence.findByPrimaryKey(messages_mobjectsPK);
	}

	@Override
	public PersistedModel getPersistedModel(Serializable primaryKeyObj)
		throws PortalException, SystemException {
		return messages_mobjectsPersistence.findByPrimaryKey(primaryKeyObj);
	}

	/**
	 * Returns a range of all the messages_mobjectses.
	 *
	 * <p>
	 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link de.hsmannheim.pepa.patientenportal.apanwep.model.impl.messages_mobjectsModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
	 * </p>
	 *
	 * @param start the lower bound of the range of messages_mobjectses
	 * @param end the upper bound of the range of messages_mobjectses (not inclusive)
	 * @return the range of messages_mobjectses
	 * @throws SystemException if a system exception occurred
	 */
	@Override
	public List<messages_mobjects> getmessages_mobjectses(int start, int end)
		throws SystemException {
		return messages_mobjectsPersistence.findAll(start, end);
	}

	/**
	 * Returns the number of messages_mobjectses.
	 *
	 * @return the number of messages_mobjectses
	 * @throws SystemException if a system exception occurred
	 */
	@Override
	public int getmessages_mobjectsesCount() throws SystemException {
		return messages_mobjectsPersistence.countAll();
	}

	/**
	 * Updates the messages_mobjects in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
	 *
	 * @param messages_mobjects the messages_mobjects
	 * @return the messages_mobjects that was updated
	 * @throws SystemException if a system exception occurred
	 */
	@Indexable(type = IndexableType.REINDEX)
	@Override
	public messages_mobjects updatemessages_mobjects(
		messages_mobjects messages_mobjects) throws SystemException {
		return messages_mobjectsPersistence.update(messages_mobjects);
	}

	/**
	 * Returns the chronik local service.
	 *
	 * @return the chronik local service
	 */
	public de.hsmannheim.pepa.patientenportal.apanwep.service.chronikLocalService getchronikLocalService() {
		return chronikLocalService;
	}

	/**
	 * Sets the chronik local service.
	 *
	 * @param chronikLocalService the chronik local service
	 */
	public void setchronikLocalService(
		de.hsmannheim.pepa.patientenportal.apanwep.service.chronikLocalService chronikLocalService) {
		this.chronikLocalService = chronikLocalService;
	}

	/**
	 * Returns the chronik remote service.
	 *
	 * @return the chronik remote service
	 */
	public de.hsmannheim.pepa.patientenportal.apanwep.service.chronikService getchronikService() {
		return chronikService;
	}

	/**
	 * Sets the chronik remote service.
	 *
	 * @param chronikService the chronik remote service
	 */
	public void setchronikService(
		de.hsmannheim.pepa.patientenportal.apanwep.service.chronikService chronikService) {
		this.chronikService = chronikService;
	}

	/**
	 * Returns the chronik persistence.
	 *
	 * @return the chronik persistence
	 */
	public chronikPersistence getchronikPersistence() {
		return chronikPersistence;
	}

	/**
	 * Sets the chronik persistence.
	 *
	 * @param chronikPersistence the chronik persistence
	 */
	public void setchronikPersistence(chronikPersistence chronikPersistence) {
		this.chronikPersistence = chronikPersistence;
	}

	/**
	 * Returns the contact local service.
	 *
	 * @return the contact local service
	 */
	public de.hsmannheim.pepa.patientenportal.apanwep.service.contactLocalService getcontactLocalService() {
		return contactLocalService;
	}

	/**
	 * Sets the contact local service.
	 *
	 * @param contactLocalService the contact local service
	 */
	public void setcontactLocalService(
		de.hsmannheim.pepa.patientenportal.apanwep.service.contactLocalService contactLocalService) {
		this.contactLocalService = contactLocalService;
	}

	/**
	 * Returns the contact remote service.
	 *
	 * @return the contact remote service
	 */
	public de.hsmannheim.pepa.patientenportal.apanwep.service.contactService getcontactService() {
		return contactService;
	}

	/**
	 * Sets the contact remote service.
	 *
	 * @param contactService the contact remote service
	 */
	public void setcontactService(
		de.hsmannheim.pepa.patientenportal.apanwep.service.contactService contactService) {
		this.contactService = contactService;
	}

	/**
	 * Returns the contact persistence.
	 *
	 * @return the contact persistence
	 */
	public contactPersistence getcontactPersistence() {
		return contactPersistence;
	}

	/**
	 * Sets the contact persistence.
	 *
	 * @param contactPersistence the contact persistence
	 */
	public void setcontactPersistence(contactPersistence contactPersistence) {
		this.contactPersistence = contactPersistence;
	}

	/**
	 * Returns the message local service.
	 *
	 * @return the message local service
	 */
	public de.hsmannheim.pepa.patientenportal.apanwep.service.messageLocalService getmessageLocalService() {
		return messageLocalService;
	}

	/**
	 * Sets the message local service.
	 *
	 * @param messageLocalService the message local service
	 */
	public void setmessageLocalService(
		de.hsmannheim.pepa.patientenportal.apanwep.service.messageLocalService messageLocalService) {
		this.messageLocalService = messageLocalService;
	}

	/**
	 * Returns the message remote service.
	 *
	 * @return the message remote service
	 */
	public de.hsmannheim.pepa.patientenportal.apanwep.service.messageService getmessageService() {
		return messageService;
	}

	/**
	 * Sets the message remote service.
	 *
	 * @param messageService the message remote service
	 */
	public void setmessageService(
		de.hsmannheim.pepa.patientenportal.apanwep.service.messageService messageService) {
		this.messageService = messageService;
	}

	/**
	 * Returns the message persistence.
	 *
	 * @return the message persistence
	 */
	public messagePersistence getmessagePersistence() {
		return messagePersistence;
	}

	/**
	 * Sets the message persistence.
	 *
	 * @param messagePersistence the message persistence
	 */
	public void setmessagePersistence(messagePersistence messagePersistence) {
		this.messagePersistence = messagePersistence;
	}

	/**
	 * Returns the message_objects local service.
	 *
	 * @return the message_objects local service
	 */
	public de.hsmannheim.pepa.patientenportal.apanwep.service.message_objectsLocalService getmessage_objectsLocalService() {
		return message_objectsLocalService;
	}

	/**
	 * Sets the message_objects local service.
	 *
	 * @param message_objectsLocalService the message_objects local service
	 */
	public void setmessage_objectsLocalService(
		de.hsmannheim.pepa.patientenportal.apanwep.service.message_objectsLocalService message_objectsLocalService) {
		this.message_objectsLocalService = message_objectsLocalService;
	}

	/**
	 * Returns the message_objects remote service.
	 *
	 * @return the message_objects remote service
	 */
	public de.hsmannheim.pepa.patientenportal.apanwep.service.message_objectsService getmessage_objectsService() {
		return message_objectsService;
	}

	/**
	 * Sets the message_objects remote service.
	 *
	 * @param message_objectsService the message_objects remote service
	 */
	public void setmessage_objectsService(
		de.hsmannheim.pepa.patientenportal.apanwep.service.message_objectsService message_objectsService) {
		this.message_objectsService = message_objectsService;
	}

	/**
	 * Returns the message_objects persistence.
	 *
	 * @return the message_objects persistence
	 */
	public message_objectsPersistence getmessage_objectsPersistence() {
		return message_objectsPersistence;
	}

	/**
	 * Sets the message_objects persistence.
	 *
	 * @param message_objectsPersistence the message_objects persistence
	 */
	public void setmessage_objectsPersistence(
		message_objectsPersistence message_objectsPersistence) {
		this.message_objectsPersistence = message_objectsPersistence;
	}

	/**
	 * Returns the message_participants local service.
	 *
	 * @return the message_participants local service
	 */
	public de.hsmannheim.pepa.patientenportal.apanwep.service.message_participantsLocalService getmessage_participantsLocalService() {
		return message_participantsLocalService;
	}

	/**
	 * Sets the message_participants local service.
	 *
	 * @param message_participantsLocalService the message_participants local service
	 */
	public void setmessage_participantsLocalService(
		de.hsmannheim.pepa.patientenportal.apanwep.service.message_participantsLocalService message_participantsLocalService) {
		this.message_participantsLocalService = message_participantsLocalService;
	}

	/**
	 * Returns the message_participants remote service.
	 *
	 * @return the message_participants remote service
	 */
	public de.hsmannheim.pepa.patientenportal.apanwep.service.message_participantsService getmessage_participantsService() {
		return message_participantsService;
	}

	/**
	 * Sets the message_participants remote service.
	 *
	 * @param message_participantsService the message_participants remote service
	 */
	public void setmessage_participantsService(
		de.hsmannheim.pepa.patientenportal.apanwep.service.message_participantsService message_participantsService) {
		this.message_participantsService = message_participantsService;
	}

	/**
	 * Returns the message_participants persistence.
	 *
	 * @return the message_participants persistence
	 */
	public message_participantsPersistence getmessage_participantsPersistence() {
		return message_participantsPersistence;
	}

	/**
	 * Sets the message_participants persistence.
	 *
	 * @param message_participantsPersistence the message_participants persistence
	 */
	public void setmessage_participantsPersistence(
		message_participantsPersistence message_participantsPersistence) {
		this.message_participantsPersistence = message_participantsPersistence;
	}

	/**
	 * Returns the messages_mobjects local service.
	 *
	 * @return the messages_mobjects local service
	 */
	public de.hsmannheim.pepa.patientenportal.apanwep.service.messages_mobjectsLocalService getmessages_mobjectsLocalService() {
		return messages_mobjectsLocalService;
	}

	/**
	 * Sets the messages_mobjects local service.
	 *
	 * @param messages_mobjectsLocalService the messages_mobjects local service
	 */
	public void setmessages_mobjectsLocalService(
		de.hsmannheim.pepa.patientenportal.apanwep.service.messages_mobjectsLocalService messages_mobjectsLocalService) {
		this.messages_mobjectsLocalService = messages_mobjectsLocalService;
	}

	/**
	 * Returns the messages_mobjects remote service.
	 *
	 * @return the messages_mobjects remote service
	 */
	public de.hsmannheim.pepa.patientenportal.apanwep.service.messages_mobjectsService getmessages_mobjectsService() {
		return messages_mobjectsService;
	}

	/**
	 * Sets the messages_mobjects remote service.
	 *
	 * @param messages_mobjectsService the messages_mobjects remote service
	 */
	public void setmessages_mobjectsService(
		de.hsmannheim.pepa.patientenportal.apanwep.service.messages_mobjectsService messages_mobjectsService) {
		this.messages_mobjectsService = messages_mobjectsService;
	}

	/**
	 * Returns the messages_mobjects persistence.
	 *
	 * @return the messages_mobjects persistence
	 */
	public messages_mobjectsPersistence getmessages_mobjectsPersistence() {
		return messages_mobjectsPersistence;
	}

	/**
	 * Sets the messages_mobjects persistence.
	 *
	 * @param messages_mobjectsPersistence the messages_mobjects persistence
	 */
	public void setmessages_mobjectsPersistence(
		messages_mobjectsPersistence messages_mobjectsPersistence) {
		this.messages_mobjectsPersistence = messages_mobjectsPersistence;
	}

	/**
	 * Returns the messages_mparticipants local service.
	 *
	 * @return the messages_mparticipants local service
	 */
	public de.hsmannheim.pepa.patientenportal.apanwep.service.messages_mparticipantsLocalService getmessages_mparticipantsLocalService() {
		return messages_mparticipantsLocalService;
	}

	/**
	 * Sets the messages_mparticipants local service.
	 *
	 * @param messages_mparticipantsLocalService the messages_mparticipants local service
	 */
	public void setmessages_mparticipantsLocalService(
		de.hsmannheim.pepa.patientenportal.apanwep.service.messages_mparticipantsLocalService messages_mparticipantsLocalService) {
		this.messages_mparticipantsLocalService = messages_mparticipantsLocalService;
	}

	/**
	 * Returns the messages_mparticipants remote service.
	 *
	 * @return the messages_mparticipants remote service
	 */
	public de.hsmannheim.pepa.patientenportal.apanwep.service.messages_mparticipantsService getmessages_mparticipantsService() {
		return messages_mparticipantsService;
	}

	/**
	 * Sets the messages_mparticipants remote service.
	 *
	 * @param messages_mparticipantsService the messages_mparticipants remote service
	 */
	public void setmessages_mparticipantsService(
		de.hsmannheim.pepa.patientenportal.apanwep.service.messages_mparticipantsService messages_mparticipantsService) {
		this.messages_mparticipantsService = messages_mparticipantsService;
	}

	/**
	 * Returns the messages_mparticipants persistence.
	 *
	 * @return the messages_mparticipants persistence
	 */
	public messages_mparticipantsPersistence getmessages_mparticipantsPersistence() {
		return messages_mparticipantsPersistence;
	}

	/**
	 * Sets the messages_mparticipants persistence.
	 *
	 * @param messages_mparticipantsPersistence the messages_mparticipants persistence
	 */
	public void setmessages_mparticipantsPersistence(
		messages_mparticipantsPersistence messages_mparticipantsPersistence) {
		this.messages_mparticipantsPersistence = messages_mparticipantsPersistence;
	}

	/**
	 * Returns the objects local service.
	 *
	 * @return the objects local service
	 */
	public de.hsmannheim.pepa.patientenportal.apanwep.service.objectsLocalService getobjectsLocalService() {
		return objectsLocalService;
	}

	/**
	 * Sets the objects local service.
	 *
	 * @param objectsLocalService the objects local service
	 */
	public void setobjectsLocalService(
		de.hsmannheim.pepa.patientenportal.apanwep.service.objectsLocalService objectsLocalService) {
		this.objectsLocalService = objectsLocalService;
	}

	/**
	 * Returns the objects remote service.
	 *
	 * @return the objects remote service
	 */
	public de.hsmannheim.pepa.patientenportal.apanwep.service.objectsService getobjectsService() {
		return objectsService;
	}

	/**
	 * Sets the objects remote service.
	 *
	 * @param objectsService the objects remote service
	 */
	public void setobjectsService(
		de.hsmannheim.pepa.patientenportal.apanwep.service.objectsService objectsService) {
		this.objectsService = objectsService;
	}

	/**
	 * Returns the objects persistence.
	 *
	 * @return the objects persistence
	 */
	public objectsPersistence getobjectsPersistence() {
		return objectsPersistence;
	}

	/**
	 * Sets the objects persistence.
	 *
	 * @param objectsPersistence the objects persistence
	 */
	public void setobjectsPersistence(objectsPersistence objectsPersistence) {
		this.objectsPersistence = objectsPersistence;
	}

	/**
	 * Returns the participants local service.
	 *
	 * @return the participants local service
	 */
	public de.hsmannheim.pepa.patientenportal.apanwep.service.participantsLocalService getparticipantsLocalService() {
		return participantsLocalService;
	}

	/**
	 * Sets the participants local service.
	 *
	 * @param participantsLocalService the participants local service
	 */
	public void setparticipantsLocalService(
		de.hsmannheim.pepa.patientenportal.apanwep.service.participantsLocalService participantsLocalService) {
		this.participantsLocalService = participantsLocalService;
	}

	/**
	 * Returns the participants remote service.
	 *
	 * @return the participants remote service
	 */
	public de.hsmannheim.pepa.patientenportal.apanwep.service.participantsService getparticipantsService() {
		return participantsService;
	}

	/**
	 * Sets the participants remote service.
	 *
	 * @param participantsService the participants remote service
	 */
	public void setparticipantsService(
		de.hsmannheim.pepa.patientenportal.apanwep.service.participantsService participantsService) {
		this.participantsService = participantsService;
	}

	/**
	 * Returns the participants persistence.
	 *
	 * @return the participants persistence
	 */
	public participantsPersistence getparticipantsPersistence() {
		return participantsPersistence;
	}

	/**
	 * Sets the participants persistence.
	 *
	 * @param participantsPersistence the participants persistence
	 */
	public void setparticipantsPersistence(
		participantsPersistence participantsPersistence) {
		this.participantsPersistence = participantsPersistence;
	}

	/**
	 * Returns the counter local service.
	 *
	 * @return the counter local service
	 */
	public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
		return counterLocalService;
	}

	/**
	 * Sets the counter local service.
	 *
	 * @param counterLocalService the counter local service
	 */
	public void setCounterLocalService(
		com.liferay.counter.service.CounterLocalService counterLocalService) {
		this.counterLocalService = counterLocalService;
	}

	/**
	 * Returns the resource local service.
	 *
	 * @return the resource local service
	 */
	public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
		return resourceLocalService;
	}

	/**
	 * Sets the resource local service.
	 *
	 * @param resourceLocalService the resource local service
	 */
	public void setResourceLocalService(
		com.liferay.portal.service.ResourceLocalService resourceLocalService) {
		this.resourceLocalService = resourceLocalService;
	}

	/**
	 * Returns the user local service.
	 *
	 * @return the user local service
	 */
	public com.liferay.portal.service.UserLocalService getUserLocalService() {
		return userLocalService;
	}

	/**
	 * Sets the user local service.
	 *
	 * @param userLocalService the user local service
	 */
	public void setUserLocalService(
		com.liferay.portal.service.UserLocalService userLocalService) {
		this.userLocalService = userLocalService;
	}

	/**
	 * Returns the user remote service.
	 *
	 * @return the user remote service
	 */
	public com.liferay.portal.service.UserService getUserService() {
		return userService;
	}

	/**
	 * Sets the user remote service.
	 *
	 * @param userService the user remote service
	 */
	public void setUserService(
		com.liferay.portal.service.UserService userService) {
		this.userService = userService;
	}

	/**
	 * Returns the user persistence.
	 *
	 * @return the user persistence
	 */
	public UserPersistence getUserPersistence() {
		return userPersistence;
	}

	/**
	 * Sets the user persistence.
	 *
	 * @param userPersistence the user persistence
	 */
	public void setUserPersistence(UserPersistence userPersistence) {
		this.userPersistence = userPersistence;
	}

	public void afterPropertiesSet() {
		Class<?> clazz = getClass();

		_classLoader = clazz.getClassLoader();

		PersistedModelLocalServiceRegistryUtil.register("de.hsmannheim.pepa.patientenportal.apanwep.model.messages_mobjects",
			messages_mobjectsLocalService);
	}

	public void destroy() {
		PersistedModelLocalServiceRegistryUtil.unregister(
			"de.hsmannheim.pepa.patientenportal.apanwep.model.messages_mobjects");
	}

	/**
	 * Returns the Spring bean ID for this bean.
	 *
	 * @return the Spring bean ID for this bean
	 */
	@Override
	public String getBeanIdentifier() {
		return _beanIdentifier;
	}

	/**
	 * Sets the Spring bean ID for this bean.
	 *
	 * @param beanIdentifier the Spring bean ID for this bean
	 */
	@Override
	public void setBeanIdentifier(String beanIdentifier) {
		_beanIdentifier = beanIdentifier;
	}

	@Override
	public Object invokeMethod(String name, String[] parameterTypes,
		Object[] arguments) throws Throwable {
		Thread currentThread = Thread.currentThread();

		ClassLoader contextClassLoader = currentThread.getContextClassLoader();

		if (contextClassLoader != _classLoader) {
			currentThread.setContextClassLoader(_classLoader);
		}

		try {
			return _clpInvoker.invokeMethod(name, parameterTypes, arguments);
		}
		finally {
			if (contextClassLoader != _classLoader) {
				currentThread.setContextClassLoader(contextClassLoader);
			}
		}
	}

	protected Class<?> getModelClass() {
		return messages_mobjects.class;
	}

	protected String getModelClassName() {
		return messages_mobjects.class.getName();
	}

	/**
	 * Performs an SQL query.
	 *
	 * @param sql the sql query
	 */
	protected void runSQL(String sql) throws SystemException {
		try {
			DataSource dataSource = messages_mobjectsPersistence.getDataSource();

			SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
					sql, new int[0]);

			sqlUpdate.update();
		}
		catch (Exception e) {
			throw new SystemException(e);
		}
	}

	@BeanReference(type = de.hsmannheim.pepa.patientenportal.apanwep.service.chronikLocalService.class)
	protected de.hsmannheim.pepa.patientenportal.apanwep.service.chronikLocalService chronikLocalService;
	@BeanReference(type = de.hsmannheim.pepa.patientenportal.apanwep.service.chronikService.class)
	protected de.hsmannheim.pepa.patientenportal.apanwep.service.chronikService chronikService;
	@BeanReference(type = chronikPersistence.class)
	protected chronikPersistence chronikPersistence;
	@BeanReference(type = de.hsmannheim.pepa.patientenportal.apanwep.service.contactLocalService.class)
	protected de.hsmannheim.pepa.patientenportal.apanwep.service.contactLocalService contactLocalService;
	@BeanReference(type = de.hsmannheim.pepa.patientenportal.apanwep.service.contactService.class)
	protected de.hsmannheim.pepa.patientenportal.apanwep.service.contactService contactService;
	@BeanReference(type = contactPersistence.class)
	protected contactPersistence contactPersistence;
	@BeanReference(type = de.hsmannheim.pepa.patientenportal.apanwep.service.messageLocalService.class)
	protected de.hsmannheim.pepa.patientenportal.apanwep.service.messageLocalService messageLocalService;
	@BeanReference(type = de.hsmannheim.pepa.patientenportal.apanwep.service.messageService.class)
	protected de.hsmannheim.pepa.patientenportal.apanwep.service.messageService messageService;
	@BeanReference(type = messagePersistence.class)
	protected messagePersistence messagePersistence;
	@BeanReference(type = de.hsmannheim.pepa.patientenportal.apanwep.service.message_objectsLocalService.class)
	protected de.hsmannheim.pepa.patientenportal.apanwep.service.message_objectsLocalService message_objectsLocalService;
	@BeanReference(type = de.hsmannheim.pepa.patientenportal.apanwep.service.message_objectsService.class)
	protected de.hsmannheim.pepa.patientenportal.apanwep.service.message_objectsService message_objectsService;
	@BeanReference(type = message_objectsPersistence.class)
	protected message_objectsPersistence message_objectsPersistence;
	@BeanReference(type = de.hsmannheim.pepa.patientenportal.apanwep.service.message_participantsLocalService.class)
	protected de.hsmannheim.pepa.patientenportal.apanwep.service.message_participantsLocalService message_participantsLocalService;
	@BeanReference(type = de.hsmannheim.pepa.patientenportal.apanwep.service.message_participantsService.class)
	protected de.hsmannheim.pepa.patientenportal.apanwep.service.message_participantsService message_participantsService;
	@BeanReference(type = message_participantsPersistence.class)
	protected message_participantsPersistence message_participantsPersistence;
	@BeanReference(type = de.hsmannheim.pepa.patientenportal.apanwep.service.messages_mobjectsLocalService.class)
	protected de.hsmannheim.pepa.patientenportal.apanwep.service.messages_mobjectsLocalService messages_mobjectsLocalService;
	@BeanReference(type = de.hsmannheim.pepa.patientenportal.apanwep.service.messages_mobjectsService.class)
	protected de.hsmannheim.pepa.patientenportal.apanwep.service.messages_mobjectsService messages_mobjectsService;
	@BeanReference(type = messages_mobjectsPersistence.class)
	protected messages_mobjectsPersistence messages_mobjectsPersistence;
	@BeanReference(type = de.hsmannheim.pepa.patientenportal.apanwep.service.messages_mparticipantsLocalService.class)
	protected de.hsmannheim.pepa.patientenportal.apanwep.service.messages_mparticipantsLocalService messages_mparticipantsLocalService;
	@BeanReference(type = de.hsmannheim.pepa.patientenportal.apanwep.service.messages_mparticipantsService.class)
	protected de.hsmannheim.pepa.patientenportal.apanwep.service.messages_mparticipantsService messages_mparticipantsService;
	@BeanReference(type = messages_mparticipantsPersistence.class)
	protected messages_mparticipantsPersistence messages_mparticipantsPersistence;
	@BeanReference(type = de.hsmannheim.pepa.patientenportal.apanwep.service.objectsLocalService.class)
	protected de.hsmannheim.pepa.patientenportal.apanwep.service.objectsLocalService objectsLocalService;
	@BeanReference(type = de.hsmannheim.pepa.patientenportal.apanwep.service.objectsService.class)
	protected de.hsmannheim.pepa.patientenportal.apanwep.service.objectsService objectsService;
	@BeanReference(type = objectsPersistence.class)
	protected objectsPersistence objectsPersistence;
	@BeanReference(type = de.hsmannheim.pepa.patientenportal.apanwep.service.participantsLocalService.class)
	protected de.hsmannheim.pepa.patientenportal.apanwep.service.participantsLocalService participantsLocalService;
	@BeanReference(type = de.hsmannheim.pepa.patientenportal.apanwep.service.participantsService.class)
	protected de.hsmannheim.pepa.patientenportal.apanwep.service.participantsService participantsService;
	@BeanReference(type = participantsPersistence.class)
	protected participantsPersistence participantsPersistence;
	@BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
	protected com.liferay.counter.service.CounterLocalService counterLocalService;
	@BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
	protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
	@BeanReference(type = com.liferay.portal.service.UserLocalService.class)
	protected com.liferay.portal.service.UserLocalService userLocalService;
	@BeanReference(type = com.liferay.portal.service.UserService.class)
	protected com.liferay.portal.service.UserService userService;
	@BeanReference(type = UserPersistence.class)
	protected UserPersistence userPersistence;
	private String _beanIdentifier;
	private ClassLoader _classLoader;
	private messages_mobjectsLocalServiceClpInvoker _clpInvoker = new messages_mobjectsLocalServiceClpInvoker();
}